/**
 * Created by lixinkun on 2017/4/20.
 */
'use strict';

import {Dimensions} from 'react-native';
const deviceHeigtDp = Dimensions.get('window').height;

const uiHeightPx = 592;

export default function px2dp(uiElementPx) {
    return uiElementPx * deviceHeigtDp / uiHeightPx;
}